package com.xunji.user.vo.req;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@ApiModel("添加用户vo")
@Data
public class UserAddRequest {

    @ApiModelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty("性别")
    @NotBlank(message = "性别不能为空")
    private Integer gender;

    @ApiModelProperty("头像文件名称")
    private String imageName;

    @ApiModelProperty("所属部门")
    @NotBlank(message = "所属部门不能为空")
    private Integer departmentId;

    @ApiModelProperty("联系方式")
    @NotBlank(message = "联系方式不能为空")
    private String phoneNumber;

    //@ApiModelProperty("是否关联用户，1：是，2：否")
    //@NotNull(message = "是否关联用户不能为空")
    //private Integer withLoginName;

    @ApiModelProperty("登录名")
    private String loginName;

    @ApiModelProperty("所属角色")
    @NotEmpty(message = "所属角色不能为空")
    private List<String> roleIds;

}
